package com.example.hidesms.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OutGoingReceiver extends BroadcastReceiver {
	private static final String NEW_OUTGOING_CALL = "android.intent.action.NEW_OUTGOING_CALL";
	public static String outGoingOn;

	@Override
	public void onReceive(Context context, Intent intent) {
		Log.e("OutGoingReceiver","action "+ intent.getAction());
		if (!intent.getAction().equalsIgnoreCase(NEW_OUTGOING_CALL))
			return;
		// Bundle bundle = intent.getExtras();
		// if (null == bundle)
		// return;
		outGoingOn = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
	}

}